<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Backgrounds and Borders: logical values</title>
    <link rel="stylesheet" href="../styles.css" />
    <style>
      * {
        box-sizing: border-box;
      }

      .wrapper {
        display: flex;
      }

      .box {
        margin: 10px;
        padding: 0.5em;
        border: 1px solid #ccc;
      }
    </style>

    <style class="editable">
      .box {
        inline-size: 200px;
        writing-mode: horizontal-tb;
      }

      img {
        float: inline-start;
        margin-inline-end: 10px;
        margin-block-end: 10px;
      }
    </style>
  </head>

  <body>
    <section class="preview">
      <div class="wrapper">
        <div class="box">
          <img src="big-star.png" alt="star" />
          <p>
            This box uses logical properties. The star image has been floated
            inline-start, it also has a margin on the inline-end and block-end.
          </p>
        </div>
      </div>
    </section>

    <textarea class="playable playable-css" style="height: 200px">
.box {
  inline-size: 200px;
  writing-mode: horizontal-tb;
}

img{
  float: inline-start;
  margin-inline-end: 10px;
  margin-block-end: 10px;
}</textarea
    >

    <textarea class="playable playable-html" style="height: 230px">
<div class="wrapper">
  <div class="box logical">
    <img src="big-star.png" alt="star">
    <p>This box uses logical properties. The star image has been floated inline-start, it also has a margin on the inline-end and block-end.</p>
  </div>
</div></textarea
    >

    <div class="playable-buttons">
      <input id="reset" type="button" value="Reset" />
    </div>
  </body>
  <script src="../playable.js"></script>
</html>
